package com.guli.gulimall.product.fegin;

import com.guli.common.utils.R;
import com.guli.common.to.MemberPriceTo;
import com.guli.common.to.SkuFullReductionTo;
import com.guli.common.to.SkuLadderTo;
import com.guli.common.to.SpuBoundsTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    //1.打折表添加数据
    @RequestMapping("/coupon/skuladder/save")
    R saveSkuLadder(@RequestBody SkuLadderTo skuLadderTo);
    //2.满减表添加数据
    @RequestMapping("/coupon/skufullreduction/save")
    R saveSkuFullReduction(@RequestBody SkuFullReductionTo skuFullReductionTo);
    //3.会员价格信息
    @RequestMapping("coupon/memberprice/save")
    R savememberPrice(@RequestBody List<MemberPriceTo> collect);
    //4.添加积分和成长值
    @RequestMapping("coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);
}
